package com.example.test.bulider.impl;

import com.example.test.bean.User;
import com.example.test.bulider.UserBuilerService;
import org.springframework.stereotype.Service;

@Service
public class UserBuilerServiceImpl implements UserBuilerService {

    private User user;

    @Override
    public void buildBasic() {
        user = new User();
        user.setId("1");
    }

    @Override
    public void buildName(){
        user.setName("2");
    }

    @Override
    public User build() {
        return user;
    }
}
